<template>
  <el-table :data="list" style="width: 100%" class="mt-10 table-box">
    <el-table-column type="index" width="50"> </el-table-column>
    <el-table-column prop="groupName" label="群组名称" width="180">
    </el-table-column>
    <el-table-column prop="nodeNums" label="传感器节点数量" width="180">
    </el-table-column>
    <el-table-column prop="onlineNums" label="在线设备数量"> </el-table-column>
    <el-table-column prop="cTime" label="创建时间" :formatter="formatTime">
    </el-table-column>
    <el-table-column prop="operation" label="操作">
      <template slot-scope="info">
        <el-button
          type="primary"
          round
          size="mini"
          @click="$emit('reName', info.$index, info.row)"
          >重命名</el-button
        >
        <el-button
          type="primary"
          round
          size="mini"
          @click="$emit('del', info.$index)"
          >删除</el-button
        >
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  props: ["list"],
  methods: {},
};
</script>

<style scoped>
.table-box {
  height: 314px;
}
</style>